package com.dream.tvsearcher.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

/**
 * Created by Vitcor Lam on 17/01/12/0012.
 */

public abstract class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(setLayout());
        findViews();
        setEvent();
        init();
        loadData();
    }

    protected abstract int setLayout();

    protected abstract void findViews();

    protected abstract void setEvent();

    protected abstract void init();

    protected abstract void loadData();
}
